
<?php

    class Extends_Helper_Table {

        public function table($obj = array()) {
            $text = "<table>";
            foreach ($obj as $object) {
                $text .= "<tr>";
                foreach ($object as $key => $value) {
                    $text .= "<td>" . $value . "</td>";
                }
                $text .= "</tr>";
            }
            $text .= "</table>";
            echo $text;

        }
    }